package sqldb

import "fmt"

type Pagination struct {
	Clause string
}

func (t *Pagination) Reset() *Pagination {
	t.Clause = ""
	return t
}

func (p *Pagination) String() string {
	return p.Clause
}

func (p *Pagination) Limit(v int) *Pagination {
	p.Clause += fmt.Sprint(" LIMIT ", v)
	return p
}

func (p *Pagination) Offset(v int) *Pagination {
	p.Clause += fmt.Sprint(" OFFSET ", v)
	return p
}
